home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene 96
/
Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso
/
misc
/
coding
/
cp2dekit
/
samples
/
binfdel.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-12-29
|
808b
|
38 lines
//***************************************************************************
//
// this file is (c) '94-'96 Niklas Beisert
//
// this file is part of the cubic player development kit.
// you may only use/modify/spread this file under the terms stated
// in the cubic player development kit accompanying documentation.
//
//***************************************************************************
#include <io.h>
#include <stdlib.h>
#include <string.h>
#include "binfdel.h"
delbinfile::delbinfile()
{
*delname=0;
}
int delbinfile::open(const char *name, int m)
{
*delname=0;
int r=sbinfile::open(name, m);
if (r)
strcpy(delname, name);
return r;
}
void delbinfile::close()
{
sbinfile::close();
if (*delname)
unlink(delname);
*delname=0;
}